import React, { Component } from 'react';
import { View, Text } from 'react-native';
import styles from './styles';

export default ({ title = '', right = null, style = {} }) => {
  return (
    <View style={[styles.wrap, style]}>
      <Text style={styles.title}>{title}</Text>
      {right}
    </View>
  );
};
